<?php
/**
 * Created by JetBrains PhpStorm.
 * User: zhouyang
 * Date: 13-7-15
 * Time: 下午4:31
 * To change this template use File | Settings | File Templates.
 */
include 'bootstrap.php';

//后台统一入口 http://domain.com/index.php?a=Action&m=method
//Action 入口
$action = $_input->get('a','index');
//method
$method = $_input->get('m','index');

$A_user = Action::getInstance('user');

if($action == 'index'){
    $A_user->indexRefer();
}else{
    if(!in_array($method,array('login'))){
        $A_user->isAction($action);
    }

    Action::getInstance($action)->{$method}();
}
exit;
